Assert

void assert(bool *Input, bool *output)

判断输入是否为 True。

\[\begin{split}output_i = \begin{cases} \text{True}, & \text{if } Input_i = \text{True} \\ \text{False}, & \text{if } Input_i = \text{False} \end{cases}\end{split}\]
输入:
  • Input - 输入数据地址(布尔类型)。

输出:
  • output - 计算结果地址(布尔类型)。

支持平台:

FT78NE MT7004

备注

  • 本算子只有一个版本

C调用示例:

 1// FT78NE/MT7004 示例(共享存储)
 2#include <stdio.h>
 3#include <stdbool.h>
 4
 5int main(int argc, char* argv[]) {
 6    bool *input  = (bool *)0xA0000000;
 7    bool *output = (bool *)0xC0000000;
 8    assert_s(input, output);
 9    return 0;
10}